import json


with open('tasks.json') as fp:
    data = json.load(fp)

print(data)
print(type(data))

with open("test.json", "w") as f:
    json.dump(data, f, indent=4)